
import { ref } from 'vue'
const imgPreviewUrl = ref()


export const useImagePreview = () => {

  const showImagePreview = (url) => {
    imgPreviewUrl.value = url
  }
  const hideImagePreview = () => {
    imgPreviewUrl.value = void 0
  }

  return {
    imgPreviewUrl,
    showImagePreview,
    hideImagePreview
  }
}